<?php

Yii::import('zii.widgets.CPortlet');
/**
 * Description of ExpPlatform
 *
 * @author rany
 */
class ExpPlatform extends CPortlet
{
    public $model;
    public  $count;
    
    public function init()
    {
        $this->model = Teaching::model()->findAll("status = ".Teaching::TYPE_PLATFORM. " limit 0, ". $this->count);
        
        parent::init();
    }
    
    protected function renderContent()
    {
            $this->render('expPlatform');
    }
}
